package com.dede.mypermission

/**
 * @author hh
 * @date 2017/8/22 13:35.
 * @doc
 */
interface PermissionRequest {

    fun request(vararg permissions: String)

    fun request()

    fun checkRequest(vararg permissions: String)

    fun checkRequest()

    fun onDenied(denied: (permission: Permission) -> Unit): PermissionRequest

    fun onGranted(granted: (permission: Permission) -> Unit): PermissionRequest

    fun requestCode(requestCode: Int): PermissionRequest

    fun permission(vararg permissions: String): PermissionRequest


    fun checkedPermission(permission: String): Boolean
}